// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_REP_PRODUCT_TECHNIC_REPORT
// * CreateDate    : 2014-06-05 18:30:33
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:33
// * LastChanger   : 2014-06-05 18:30:33
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class RepProductTechnicReportEntity : EntityBase
    {
        public RepProductTechnicReportTable TableSchema
        {
            get
            {
                return RepProductTechnicReportTable.Current;
            }
		}
		
		public RepProductTechnicReportEntity()
        {

        }
		
		public RepProductTechnicReportEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.RepReportId = Convert.ToString(CommonFunctions.ToObject(dr["REP_REPORT_ID"]));
			this.RepProductTechnicId = Convert.ToString(CommonFunctions.ToObject(dr["REP_PRODUCT_TECHNIC_ID"]));
			this.ReportQty = Convert.ToDecimal(CommonFunctions.ToObject(dr["REPORT_QTY"]));
			this.ReportDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["REPORT_DATE"]));
			this.ReportBy = Convert.ToString(CommonFunctions.ToObject(dr["REPORT_BY"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }
		
		public RepProductTechnicReportEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.RepReportId = Convert.ToString(CommonFunctions.ToObject(dr["REP_REPORT_ID"]));
			this.RepProductTechnicId = Convert.ToString(CommonFunctions.ToObject(dr["REP_PRODUCT_TECHNIC_ID"]));
			this.ReportQty = Convert.ToDecimal(CommonFunctions.ToObject(dr["REPORT_QTY"]));
			this.ReportDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["REPORT_DATE"]));
			this.ReportBy = Convert.ToString(CommonFunctions.ToObject(dr["REPORT_BY"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return RepProductTechnicReportTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string RepReportId
        {
            get { return Convert.ToString(GetData(RepProductTechnicReportTable.C_REP_REPORT_ID)); }
            set { SetData(RepProductTechnicReportTable.C_REP_REPORT_ID, value); }
        }
		
        [DataMember]
        public string RepProductTechnicId
        {
            get { return Convert.ToString(GetData(RepProductTechnicReportTable.C_REP_PRODUCT_TECHNIC_ID)); }
            set { SetData(RepProductTechnicReportTable.C_REP_PRODUCT_TECHNIC_ID, value); }
        }
		
        [DataMember]
        public decimal ReportQty
        {
            get { return Convert.ToDecimal(GetData(RepProductTechnicReportTable.C_REPORT_QTY)); }
            set { SetData(RepProductTechnicReportTable.C_REPORT_QTY, value); }
        }
		
        [DataMember]
        public DateTime ReportDate
        {
            get { return Convert.ToDateTime(GetData(RepProductTechnicReportTable.C_REPORT_DATE)); }
            set { SetData(RepProductTechnicReportTable.C_REPORT_DATE, value); }
        }
		
        [DataMember]
        public string ReportBy
        {
            get { return Convert.ToString(GetData(RepProductTechnicReportTable.C_REPORT_BY)); }
            set { SetData(RepProductTechnicReportTable.C_REPORT_BY, value); }
        }
		
        [DataMember]
        public string Remark
        {
            get { return Convert.ToString(GetData(RepProductTechnicReportTable.C_REMARK)); }
            set { SetData(RepProductTechnicReportTable.C_REMARK, value); }
        }
		
		#endregion
	}
	
	
}	

